package net.edwardstx.brian.rpn.types;

import java.io.Serializable;
import java.util.LinkedList;

import net.edwardstx.brian.rpn.RPNStackItem;
public class RPNArray implements RPNStackItem<LinkedList<RPNStackItem<Serializable>>> {
	public static final String TYPE_NAME = "Array";
	public static final Type<RPNArray> TYPE = new Type<RPNArray>(TYPE_NAME,RPNArray.class);
	private static final LinkedList<RPNStackItem<Serializable>> EMPTY = new LinkedList<>();
	private LinkedList<RPNStackItem<Serializable>> myArray = EMPTY;
	
	public RPNArray(){
		
	}
	
	public RPNArray(RPNStackItem  ... item){
		
	}
	
	@Override
	public Type<RPNArray> getAssociatedType() {
		return TYPE;
	}

	@Override
	public LinkedList<RPNStackItem<Serializable>> getValue() {
		return myArray;
	}

}
